//custom Vtype for vtype:'time'
(function(){
	var numberTest = /^\d{1,10}$/i;
	Ext.apply(Ext.form.field.VTypes, {
	    //  vtype validation function
	    number: function(val, field) {
	        return numberTest.test(val);
	    },
	    // vtype Text property: The error text to display when the validation function returns false
	    numberText: 'Not a valid number.  Must be in the format "0-9".',
	    // vtype Mask property: The keystroke filter mask
	    numberMask: /[\d]/i
	});
	
	var nameTest = /^\w{1,13}$/i;
	Ext.apply(Ext.form.field.VTypes, {
	    //  vtype validation function
		name: function(val, field) {
	        return nameTest.test(val);
	    },
	    // vtype Text property: The error text to display when the validation function returns false
	    nameText: 'Not a valid name. Only allow 13 character for name',
	    // vtype Mask property: The keystroke filter mask
	    nameMask: /\w/i
	});
	
})();